using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class threeroundsystem : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024find_0024482 : GenericGenerator<WaitForSeconds>
	{
		internal threeroundsystem _0024self__0024484;

		public _0024find_0024482(threeroundsystem self_)
		{
			_0024self__0024484 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024484);
		}
	}

	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024finished_0024485 : GenericGenerator<WaitForSeconds>
	{
		internal threeroundsystem _0024self__0024487;

		public _0024finished_0024485(threeroundsystem self_)
		{
			_0024self__0024487 = self_;
		}

		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024(_0024self__0024487);
		}
	}

	public GameObject t;

	public restart restartt;

	private int state;

	public int playerpoints;

	public int aipoints;

	public void Start()
	{
		UnityEngine.Object.DontDestroyOnLoad(t);
		StartCoroutine(find());
	}

	public void OnLevelWasLoaded()
	{
		if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name == "mainmenu2")
		{
			UnityEngine.Object.Destroy(gameObject);
		}
		if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name == "stadiumselect")
		{
			UnityEngine.Object.Destroy(gameObject);
		}
	}

	public IEnumerator find()
	{
		return new _0024find_0024482(this).GetEnumerator();
	}

	public IEnumerator finished()
	{
		return new _0024finished_0024485(this).GetEnumerator();
	}

	public void Main()
	{
	}
}
